package com.itbour.web.result;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.json.JSONResult;

import com.itbour.common.log.DebugLogger;
import com.opensymphony.xwork2.ActionInvocation;

/**
 * copyright   pirate alliance team 2014
 * @author     xuwei
 *
 */
public class SysResult extends JSONResult
{

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	/* (non-Javadoc)
	 * @see org.apache.struts2.json.JSONResult#addCallbackIfApplicable(javax.servlet.http.HttpServletRequest, java.lang.String)
	 */
	@Override
	protected String addCallbackIfApplicable(HttpServletRequest arg0, String arg1)
	{
		// TODO Auto-generated method stub
		String jsonString = super.addCallbackIfApplicable(arg0, arg1);

		DebugLogger.log(jsonString);

		return jsonString;
	}

	/* (non-Javadoc)
	 * @see org.apache.struts2.json.JSONResult#execute(com.opensymphony.xwork2.ActionInvocation)
	 */
	@Override
	public void execute(ActionInvocation arg0) throws Exception
	{
		// TODO Auto-generated method stub
		super.execute(arg0);
	}

}

